]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControls: Move slideOut on overview hide to the parent as well
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 18 Sep 2013 23:13:35 +0000 (19:13 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 30 Oct 2013 17:16:44 +0000 (13:16 -0400)
js/ui/overviewControls.js

index fbf982f228b9430b00b9e91a62339260e4a493f5..e499ecd14bd97a742adcedd0db02de5156753c48 100644 (file)
@@ -109,6 +109,7 @@ const SlidingControl = new Lang.Class({
                                      clip_to_allocation: true });
 
         Main.overview.connect('showing', Lang.bind(this, this._onOverviewShowing));
+        Main.overview.connect('hiding', Lang.bind(this, this._onOverviewHiding));
 
         Main.overview.connect('item-drag-begin', Lang.bind(this, this._onDragBegin));
         Main.overview.connect('item-drag-end', Lang.bind(this, this._onDragEnd));
@@ -174,6 +175,10 @@ const SlidingControl = new Lang.Class({
         this.slideIn();
     },
 
+    _onOverviewHiding: function() {
+        this.slideOut();
+    },
+
     _onWindowDragBegin: function() {
         this._onDragBegin();
     },
@@ -244,7 +249,6 @@ const ThumbnailsSlider = new Lang.Class({
         this.actor.add_actor(this._thumbnailsBox.actor);
 
         Main.layoutManager.connect('monitors-changed', Lang.bind(this, this.updateSlide));
-        Main.overview.connect('hiding', Lang.bind(this, this.slideOut));
         this.actor.connect('notify::hover', Lang.bind(this, this.updateSlide));
         this._thumbnailsBox.actor.bind_property('visible', this.actor, 'visible', GObject.BindingFlags.SYNC_CREATE);
     },
@@ -322,7 +326,6 @@ const DashSlider = new Lang.Class({
         this.actor.add_actor(this._dash.actor);
 
         this._dash.connect('icon-size-changed', Lang.bind(this, this.updateSlide));
-        Main.overview.connect('hiding', Lang.bind(this, this.slideOut));
     },
 
     getSlide: function() {